package com.newblog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.newblog.model.userinfo;
import com.newblog.model.vo.UserInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * Created with Intellij IDEA.
 * Description;
 * UserInfo:TQ02
 * Data:2023-12-07
 * Time:20:15
 * Text：
 */
@Mapper
public interface UserMapper extends BaseMapper<userinfo> {
    @Select("select * from userinfo where userid=#{userid}")
    UserInfoVo getUserById(@Param("userid") int uid);
}
